/*
********************************************************************************
* Copyright (C) 2021, xiang.D <dx_65535@163.com>.
* All right reserved.
*
* File Name   : log_add_info.h
* Author      :
* Version     : V1.0
* Description :
* Journal     : 2021-01-12 version v1.0
* Brief       : Blog: https://blog.csdn.net/qq_38750572?spm=1001.2014.3001.5343
* Others      :
                Compile command: make
********************************************************************************
*/
#ifndef __LOG_ADD_INFO_H__
#define __LOG_ADD_INFO_H__

#include "log_base.h"
#include "custom_log.h"

// 将log保存到指定文件
class CLogAddInfo : public CCustomLog
{
public:
    explicit CLogAddInfo(CLogBase *pLog) : CCustomLog(pLog)
    {}

    virtual ~CLogAddInfo()
    {}

    static CLogAddInfo* GetInstance(CLogBase *pLog);

    virtual int WriteLog(const char *tag, const char *msg);

    virtual int SetLogLevel(int level);

};

#endif